#!/bin/sh

case "$1" in
    -h | --help)
        echo 'Usage: osd-text [TEXT...]
Display TEXT in OSD.
Without arguments, show previously displayed text.'
        exit 0 ;;
    *)
        if [[ -z "$@" ]]; then
            gdpipe "(osd-text)"
        else
            gdpipe "(osd-text \"$@\")"
        fi
        ;;
esac
